A thesaurus is not a species of dinosaur

Using jqplot with shiny

November 23, 2019

A long time ago, I had a reason to do thia . It is pretty ingenious if you ask me and gives a functionality which is not available anywhere else.

Suppose you had some data and you plotted it.Simple enough to do in Shiny and present it.

Now, what if you want to control the plot shape to shape your data? Sounds simple right?

Well, duh, it’s not, at least in Shiny.

When I was faced with this challenge there were a couple of libraries in Javascript which could do this. Which were Jqplot and highcharts. Of this only jqplot is usable in terms of license issues

So, lets have a look at the relevant part of jqplot http://www.jqplot.com/examples/customHighlighterCursorTrendline.php

As you can check out, it allows us to change the plot points as needed.

So how do you port this functionality over to shiny?


Narayanan Iyer

Written by Narayanan Iyer who lives and works in Mumbai. Full time R and shiny enthusiast , he spends way too much time on HN. Fluent in R,shiny, docker, Python, Javascript and C# and 6 other human languages.

You can contact him at narayanan iyer 22 at gmail dot com